Confirm = {
    show: function (message,callback) {
        Swal.fire({
            title: '是否确认?',
            text: message,
            icon: 'warning',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: '删除',
            cancelButtonText: '取消',
        }).then((result) => {
            if (result.value) {//点击确认按钮  之后会触发的事件
                if (callback){
                    callback()
                }
            }
        })
    }
}